﻿// =================================================================== 
// 项目说明
//====================================================================
// 陈岩。@Copy Right 2006-2012
// 文件： Userdef.cs
// 项目名称：工程项目管理
// 创建时间：2012/6/29
// 负责人：陈岩
// ===================================================================
using System;
using System.Data;
using Enter.DataCommon;

namespace Enter.DataProxy.Statistics.Entity
{
	/// <summary>
	///Userdef数据实体
	/// </summary>
	[Serializable]
	public class UserdefEntity : DataMapDictionary
	{
		
		#region 公共属性
		
		///<summary>
		///
		///</summary>
		public int id
		{
			get {return Get<int>("id");}
			set {Set("id", value);}
		}

		///<summary>
		///
		///</summary>
		public int userid
		{
			get {return Get<int>("userid");}
			set {Set("userid", value);}
		}

		///<summary>
		///
		///</summary>
		public string imgdef
		{
			get {return Get<string>("imgdef");}
			set {Set("imgdef", value);}
		}

		///<summary>
		///
		///</summary>
		public string imglink
		{
			get {return Get<string>("imglink");}
			set {Set("imglink", value);}
		}
	
		#endregion
		
		#region 私有方法
		
				/// <summary>
		/// 表中所有的成员字段
		/// </summary>
		private static readonly MapSetSchema _schema;

		static UserdefEntity()
		{
			_schema = new MapSetSchema();
			_schema.AddField("id");
			_schema.AddField("userid");
			_schema.AddField("imgdef");
			_schema.AddField("imglink");
			_schema.Compile();
		}
		/// <summary>
		/// 初始化
		/// </summary>
		public UserdefEntity()
			: base(_schema)
		{

		}
		
		#endregion
	}
}
